<%@ include file="/en/jsp/static.jsp" %>
<%@ page import="java.util.*,linuxbox.poll.logic.*" %>

<%
  int ENTRIES_PER_PAGE = Integer.parseInt((String)request.getAttribute("ENTRIES_PER_PAGE"));
  String VIEW_TYPE = (String)request.getAttribute("DEFAULT_VIEW");
%>

<jsp:include page="/en/jsp/header.jsp" flush="true"/>

<form action="<%=BoxStatic.servletDir%>BoxPollSettingsAction" method=post name=theForm >
  <table width="100%" height=26 align=middle border=0 cellpadding=0 cellspacing=0 bgcolor="#f4f4f4" style="font-size:16px;color:#d05000">
    <tr>
      <td>
        &nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width=14 height=15 border=0 align="absmiddle">
        <b><%=boxName%> - Poll Settings</b>
      </td>
      <td align=right>
        <a href="<%=BoxStatic.jspDir%>poll/BoxPoll.jsp">
          View Poll List
        </a>
      </td>
    </tr>
  </table>

<hr width=\"100%\" color=#E06000 align=left>

  <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
    <tr>
      <th align=left bgcolor="#e4e4e4" >
        <font size="+1">General:</font>
      </th>
    </tr>
    <tr>
      <td>
        Display
          <select name="ENTRIES_PER_PAGE" size="1" >
            <OPTION value=10 <% if (ENTRIES_PER_PAGE==10) out.print("selected");%>>10</OPTION>
            <OPTION value=20 <% if (ENTRIES_PER_PAGE==20) out.print("selected");%>>20</OPTION>
            <OPTION value=30 <% if (ENTRIES_PER_PAGE==30) out.print("selected");%>>30</OPTION>
            <OPTION value=50 <% if (ENTRIES_PER_PAGE==50) out.print("selected");%>>50</OPTION>
            <OPTION value=100 <% if (ENTRIES_PER_PAGE==100) out.print("selected");%>>100</OPTION>
            <OPTION value=200 <% if (ENTRIES_PER_PAGE==200) out.print("selected");%>>200</OPTION>
          </select>
         entries per page.
      </td>
    </tr>
    <tr>
      <td>
        Default View Type:
          <select name="VIEW_TYPE" size="1" >
            <OPTION value=
              <%  out.print(BoxPoll.VT_ALL);
                  if (BoxPoll.VT_ALL.compareTo(VIEW_TYPE)==0)
                    out.print(" selected>");
                  else
                    out.print(">");
                  out.print(BoxPoll.VT_ALL);
              %>
            </OPTION>
            <OPTION value=
              <%  out.print(BoxPoll.VT_OPEN);
                  if (BoxPoll.VT_OPEN.compareTo(VIEW_TYPE)==0)
                    out.print(" selected>");
                  else
                    out.print(">");
                  out.print(BoxPoll.VT_OPEN);
              %>
            </OPTION>
            <OPTION value=
              <%  out.print(BoxPoll.VT_CLOSED);
                  if (BoxPoll.VT_CLOSED.compareTo(VIEW_TYPE)==0)
                    out.print(" selected>");
                  else
                    out.print(">");
                  out.print(BoxPoll.VT_CLOSED);
              %>
            </OPTION>
          </select> Polls
      </td>
    </tr>
    <tr>
      <td>
        <input type=submit value="Save"  name="SubmitSave">
        <input type=button value="Cancel" onclick="window.history.go(-1)" >
      </td>
    </tr>
  </TABLE>

<hr width=\"100%\" color=#E06000 align=left>
</form>

<jsp:include page="/en/jsp/footer.jsp" flush="true"/>
